package com.zsrt.java.day20161226.xww.demo3.demo8;

public class Star {

	public static void demo8(){
		for(int hang=1;hang<=4;hang++){
			for(int kg=1;kg<=4-hang;kg++){
				System.out.print(" ");
				}
			for(int star=1;star<=2*hang-1;star++){
				System.out.print("*");
			}
			    System.out.println();
			}
		for(int hang1=1;hang1<=3;hang1++){
			for(int kg1=1;kg1<=hang1;kg1++){
				System.out.print(" ");
			}
			for(int star1=1;star1<=7-2*hang1;star1++){
				System.out.print("*");
			}
			    System.out.println();
		    }
		}
	
	public static void main(String[] args) {
		demo8();
	}
}
